package com.maker.generator.entity;

import java.io.Serializable;
import java.util.Map;
/**
 * 元表字段
 * @author rainbow
 *
 */
public class MetaGenField implements Serializable{

	private static final long serialVersionUID = -80120521965906211L;
	
	public static final String CFG_KEY_COMMENT = "field_comment";
	public static final String CFG_KEY_NAME = "field_name";
	public static final String CFG_KEY_TYPE = "field_type";
	public static final String CFG_KEY_LENGTH = "field_length";
	private Long id;
	private String fieldName;
	private String fieldComment;
	private String fieldType;
	private String fieldLength;
	
	private MetaGenTable genTable;
	
	/**
	 * 配置
	 */
	private MetaGenConfig config;
	
	/**
	 * 不纳入映射的配置项
	 */
	private Map<String,Object> options;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public String getFieldComment() {
		return fieldComment;
	}

	public void setFieldComment(String fieldComment) {
		this.fieldComment = fieldComment;
	}

	public String getFieldType() {
		return fieldType;
	}

	public void setFieldType(String fieldType) {
		this.fieldType = fieldType;
	}

	public String getFieldLength() {
		return fieldLength;
	}

	public void setFieldLength(String fieldLength) {
		this.fieldLength = fieldLength;
	}

	public MetaGenTable getGenTable() {
		return genTable;
	}

	public void setGenTable(MetaGenTable genTable) {
		this.genTable = genTable;
	}

	public Map<String, Object> getOptions() {
		return options;
	}

	public void setOptions(Map<String, Object> options) {
		this.options = options;
	}

	public MetaGenConfig getConfig() {
		return config;
	}

	public void setConfig(MetaGenConfig config) {
		this.config = config;
	}
	
	
}
